<div class="main-title main-title-with-tabs clearfix">
    <h1 class="float-left">Numbering</h1>	
    <div class="main-title-tabs">
		<?php
		$this->widget('zii.widgets.CMenu', array(
			'items' => array(
				array(
					'label' => 'Transaction',
					'url' => array('system/numbering', 'type' => 'Transaction'),
					'visible' => Yii::app()->user->checkModuleAccess('Propsage.Accounting.Commission'),
					'active' => $type == 'Transaction'
				),
				array(
					'label' => 'Invoice',
					'url' => array('system/numbering', 'type' => 'Invoice'),
					'visible' => Yii::app()->user->checkModuleAccess('Propsage.Accounting.Commission'),
					'active' => $type == 'Invoice'
				),
				array(
					'label' => 'Proforma Invoice',
					'url' => array('system/numbering', 'type' => 'ProformaInvoice'),
					'visible' => Yii::app()->user->checkModuleAccess('Propsage.Accounting.Commission') && Yii::app()->user->model->agency->getSetting('EnableProformaInvoice') == '1',
					'active' => $type == 'ProformaInvoice'
				),
				array(
					'label' => 'Receipt',
					'url' => array('system/numbering', 'type' => 'Receipt'),
					'visible' => Yii::app()->user->checkModuleAccess('Propsage.Accounting.Commission'),
					'active' => $type == 'Receipt'
				),
				array(
					'label' => 'Payment Voucher',
					'url' => array('system/numbering', 'type' => 'PaymentVoucher'),
					'visible' => Yii::app()->user->checkModuleAccess('Propsage.Accounting.Commission'),
					'active' => $type == 'PaymentVoucher'
				),
				array(
					'label' => 'Listing',
					'url' => array('system/numbering', 'type' => 'Listing'),
					'visible' => Yii::app()->user->checkModuleAccess('Propsage.MLS'),
					'active' => $type == 'Listing'
				),
				array(
					'label' => 'Booking',
					'url' => array('system/numbering', 'type' => 'Booking'),
					'visible' => Yii::app()->user->checkModuleAccess('Propsage.Projects.Booking'),
					'active' => $type == 'Booking'
				),
			),
			'encodeLabel' => false,
			'htmlOptions' => array(
				'class' => '',
			),
		));
		?>
    </div>
</div>